package com.ssy.lingxi.settle.accounts.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 会员生产通知单结算DO
 * @author 伍将
 * @date 2020/10/26
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "sa_member_production_notice_settlement",
        indexes = {@Index(name = "sa_member_production_notice_settlement_id_idx", columnList = "settlementId"),
                @Index(name = "sa_member_production_notice_settlement_order_time_idx", columnList = "orderTime")})
public class MemberProductionNoticeSettlementDO implements Serializable {
    private static final long serialVersionUID = 1022275746231096683L;

    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "member_production_notice_settlement_seq")
    @SequenceGenerator(sequenceName = "sa_member_production_notice_settlement_seq", name = "member_production_notice_settlement_seq", allocationSize = 1)
    private Long id;

    /**
     * 结算id
     */
    @Column(columnDefinition = "int8")
    private Long settlementId;

    /**
     * 单据号
     */
    @Column(columnDefinition = "varchar(50)")
    private String orderNo;

    /**
     * 单据摘要
     */
    @Column(columnDefinition = "varchar(50)")
    private String orderAbstract;

    /**
     * 单据时间
     */
    @Column(columnDefinition = "int8")
    private Long orderTime;

    /**
     * 订单金额
     */
    @Column(columnDefinition = "decimal")
    private Double orderAmount;

    /**
     * 批次
     */
    @Column(columnDefinition = "int")
    private Integer batch;

    /**
     * 收货时间
     */
    @Column(columnDefinition = "int8")
    private Long receiveTime;

    /**
     * 收货数量
     */
    @Column(columnDefinition = "decimal")
    private Double receiveCount;

    /**
     * 结算金额
     */
    @Column(columnDefinition = "decimal")
    private Double settlementAmount;

    /**
     * 结算会员id
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 结算角色id
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 付款会员id
     */
    @Column(columnDefinition = "int8")
    private Long payMemberId;

    /**
     * 付款角色id
     */
    @Column(columnDefinition = "int8")
    private Long payRoleId;

    /**
     * 关联数据id
     */
    @Column(columnDefinition = "int8 default 0")
    private Long dataId;

    /**
     * 是否含税：CommonBooleanEnum
     */
    @Column(columnDefinition = "int")
    private Integer isHasTax;

    /**
     * 税率
     */
    @Column(columnDefinition = "decimal")
    private Double taxRate;

    public Integer getIsHasTax() {
        return isHasTax;
    }

    public void setIsHasTax(Integer isHasTax) {
        this.isHasTax = isHasTax;
    }

    public Double getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(Double taxRate) {
        this.taxRate = taxRate;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getPayMemberId() {
        return payMemberId;
    }

    public void setPayMemberId(Long payMemberId) {
        this.payMemberId = payMemberId;
    }

    public Long getPayRoleId() {
        return payRoleId;
    }

    public void setPayRoleId(Long payRoleId) {
        this.payRoleId = payRoleId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSettlementId() {
        return settlementId;
    }

    public void setSettlementId(Long settlementId) {
        this.settlementId = settlementId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderAbstract() {
        return orderAbstract;
    }

    public void setOrderAbstract(String orderAbstract) {
        this.orderAbstract = orderAbstract;
    }

    public Long getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Long orderTime) {
        this.orderTime = orderTime;
    }

    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getBatch() {
        return batch;
    }

    public void setBatch(Integer batch) {
        this.batch = batch;
    }

    public Long getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Long receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Double getReceiveCount() {
        return receiveCount;
    }

    public void setReceiveCount(Double receiveCount) {
        this.receiveCount = receiveCount;
    }

    public Double getSettlementAmount() {
        return settlementAmount;
    }

    public void setSettlementAmount(Double settlementAmount) {
        this.settlementAmount = settlementAmount;
    }
}
